﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ServiceModel;
using System.ServiceModel.Web;
using MBWebService.Core.Enums;
using System.IO;

namespace MBWebService.Core.Interfaces
{
    [ServiceContract]
    public interface IDirectImages
    {
        /// <summary>
        /// Gets an image directly (bypasses the PictureItem object)
        /// </summary>
        /// <param name="id">The id of the item</param>
        /// <param name="imageType">Type of image</param>
        /// <param name="maxHeight">Max height of the image (optional)</param>
        /// <param name="maxWidth">Max width of the image (optional)</param>
        /// <returns></returns>
        [OperationContract]
        [WebGet(UriTemplate = "?id={id}&imagetype={imageType}&maxheight={maxHeight}&maxwidth={maxWidth}")]
        Stream GetDirectImage(Guid id, ImageTypes imageType, int maxHeight, int maxWidth);
    }
}
